package org.suze.springboot.model;

import org.suze.springboot.base.model.BaseModel;

/**
 * @description:
 * @Date : 上午11:39 2017/9/11
 * @Author : 石冬冬-Heil Hitler(dongdong.shi@mljr.com)
 */
public class UserModel<Long> extends BaseModel {
    private static final long serialVersionUID = 4684763451872378581L;

    private String name;//姓名
    private String tel;//电话
    private String address;//住址

    public UserModel() {
    }

    public UserModel(Long id, String name, String tel, String address) {
        this.setId((Number) id);
        this.name = name;
        this.tel = tel;
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "UserModel{" +
                "id='" + this.getId() + '\'' +
                ", name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

    @Override
    public String getPrefix() {
        return this.getClass().getSimpleName();
    }
}
